package com.tiny_wind.tiny_wind_diary.dao;

import com.tiny_wind.tiny_wind_diary.entity.TokenEntity;
import com.tiny_wind.tiny_wind_diary.entity.UserEntity;
import org.apache.ibatis.annotations.Param;
import sun.tools.jstat.Token;

public interface UserDao {
	
	UserEntity searchByAccount(@Param("account") String account);
	UserEntity searchByUserId(@Param("userId") Integer userId);
	UserEntity searchByToken(@Param("account") String token);
	
	void insertToken(TokenEntity entity);
	void deleteToken(Integer userId);
	String searchToken(Integer userId);
}
